package com.neusoft.mybatisdemo.bean;

import java.util.List;

/**
 * @author Administrator
 */
public class Role {
	private Integer id;
	private String roleName;

	/**
	 * 一个角色可以被多个管理账号所拥有
	 */
	private List<Admin> admins;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	

	public List<Admin> getAdmins() {
		return admins;
	}

	public void setAdmins(List<Admin> admins) {
		this.admins = admins;
	}

	public Role(Integer id, String roleName) {
		super();
		this.id = id;
		this.roleName = roleName;
	}

	public Role() {
		super();
	}

	@Override
	public String toString() {
		return "Role [roleId=" + id + ", roleName=" + roleName + "]";
	}

}
